<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html	lang="en">
<head>
<!-- 包含公共的JSP代码片段 -->

<title>天天点餐平台</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/docs/js/jquery.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/docs/js/page_common.js"></script>
<link
	href="${pageContext.request.contextPath}/static/docs/css/common_style_blue.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/docs/css/index_1.css" />
</head>

<body	class="no-skin">
	<!-- 页面标题 -->
	<div id="TitleArea">
		<div id="TitleArea_Head"></div>
		<div id="TitleArea_Title">
			<div id="TitleArea_Title_Content">
				<img border="0" width="13" height="13"
					src="${pageContext.request.contextPath}/static/docs/images/title_arrow.gif" />
				菜列表
			</div>
		</div>
		<div id="TitleArea_End"></div>
	</div>


	<!-- 主内容区域（数据列表或表单显示） -->
	<div id="MainArea">
		<table class="MainArea_Content" cellspacing="0" cellpadding="0">
			<!-- 表头-->
			<thead>
				<tr align="center" valign="middle" id="TableTitle">
					<td>编号</td>
					<td>菜名</td>
					<td>菜系</td>
					<td>价格</td>
					<td>会员价</td>
					<td>描述</td>
					<td>图片</td>
					<td>操作</td>
				</tr>
			</thead>
			<!--显示数据列表 -->
			<tbody id="TableData">
				<tr class="TableDetail1">
					<c:forEach items="${foodList}" var="food">
						<tr>
							<td align="center">${food.id}</td>
							<td align="center">${food.foodname}</td>
							<td align="center">${food.foodtype.typename}</td>
							<td align="center">${food.price}</td>
							<td align="center">${food.mprice}</td>
							<td align="center">${food.remark}</td>
							<td align="center">${food.img}</td>
							<td>
							<input type="button" value="修改"
								onclick="location.href='editfood/${food.id}'">&nbsp;
								 <a
										href="deletefood/${food.id}" onclick="return del()">删除</a>

								</td>

						</tr>
					</c:forEach>
			</tbody>
		</table>

		<!-- 其他功能超链接 -->
		<div id="TableTail" align="center">
			<div class="FunctionButton">
				<a href="addfood">添加</a>
			</div>
		</div>
	</div>
</body>
</html>